home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
shells
/
kiss-0.11
/
kiss-0
/
kiss
/
src
/
getline
/
testgl.c
< prev
Wrap
C/C++ Source or Header
|
1993-11-28
|
257b
|
18 lines
#include <stdio.h>
#include "getline.h"
main()
/*
* just echo user input lines, letting user edit them and move through
* history list
*/
{
char *p;
do {
p = getline("PROMPT>>>> ");
gl_histadd(p);
fputs(p, stdout);
} while (*p != 0);
}